package com.example.jiaju.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class User {

    @SerializedName("msg")
    public String msg;
    @SerializedName("code")
    public Integer code;
    @SerializedName("page")
    public PageDTO page;

    @NoArgsConstructor
    @Data
    public static class PageDTO {
        @SerializedName("totalCount")
        public Integer totalCount;
        @SerializedName("pageSize")
        public Integer pageSize;
        @SerializedName("totalPage")
        public Integer totalPage;
        @SerializedName("currPage")
        public Integer currPage;
        @SerializedName("list")
        public List<ListDTO> list;

        @NoArgsConstructor
        @Data
        public static class ListDTO {
            @SerializedName("userId")
            public Integer userId;
            @SerializedName("userName")
            public String userName;
            @SerializedName("userPwd")
            public String userPwd;
            @SerializedName("userPhone")
            public String userPhone;
            @SerializedName("userNike")
            public String userNike;
            @SerializedName("userAdd")
            public String userAdd;
            @SerializedName("userImg")
            public String userImg;
        }
    }
}
